package com.kim.nidoya.activity;

import com.kim.nidoya.R;
import com.kim.nidoya.utils.ActivityDispatchUtil;

import android.view.View;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.Toast;

public class AboutActivity extends BaseActivity {
	private Button checkUpdate;
	private ImageView back;

	@Override
	public void onClick(View v) {
		int vid = v.getId();
		switch (vid) {
		case R.id.about_activity_btn_ck_update:
			Toast.makeText(this, "检查更新", Toast.LENGTH_SHORT).show();
			break;

		case R.id.about_activity_img_back:
			ActivityDispatchUtil.backToAboveActivity(SettingsGroup.group);
			break;

		default:
			break;
		}
	}

	@Override
	protected void initParam() {

	}

	@Override
	protected void initView() {
		setContentView(R.layout.about_activity_layout);
		checkUpdate = (Button) findViewById(R.id.about_activity_btn_ck_update);
		back = (ImageView) findViewById(R.id.about_activity_img_back);
		checkUpdate.setOnClickListener(this);
		back.setOnClickListener(this);
	}

}
